From: Keir Fraser Date: Tue, 31 May 2011 12:57:45 +0000 (+0100) Subject: x86: Fix spurious_page_fault() for 1GB superpages. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10259 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=4ba6d11c49245ad9350d80f247b049377701554a;p=xen.git x86: Fix spurious_page_fault() for 1GB superpages. From: Xin Li Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 655e74c03c..0852ab2bd6 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1195,6 +1195,8 @@ static int __spurious_page_fault( if ( ((l3e_get_flags(l3e) & required_flags) != required_flags) || (l3e_get_flags(l3e) & disallowed_flags) ) return 0; + if ( l3e_get_flags(l3e) & _PAGE_PSE ) + return 1; #endif #endif